package com.water76016.ourtask.service;

import com.water76016.ourtask.common.RestResult;
import com.water76016.ourtask.dto.UserDTO;
import com.water76016.ourtask.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author github:water76016
 * @since 2020-07-21
 */
public interface UserService {
        //RestResult userRegister(User user);
    /**
     * 用户进行注册操作
     *
     * @param userDTO the user
     * @return the rest result
     */
    RestResult register(UserDTO userDTO);

    /**
     * 用户进行登录操作
     *
     * @param user  the user
     * @param response the response
     * @return the rest result
     */
    RestResult login(User user, HttpServletResponse response);

    /**
     * 游客进行登录操作
     *
     * @param user  the user
     * @param response the response
     * @return the rest result
     */
}
